package com.itheima.homework4;

public class Consumer implements Runnable {
   private Box box;

    public Consumer(Box box) {
        this.box = box;
    }

    @Override
    public void run() {
        while (true){
            box.getMilk();
        }
    }
}
